import java.io.File;

public class Demo8 {
    public static void main(String[] args) {
        File file=new File("d:/test");
        String[] files=file.list();
        for (int i=0;i<files.length;i++){
            System.out.println(files[i]);
        }
    }
}
